function instances = generateRandomInstance(n)

a=loadjson('attributes.js');
a=a.attributes;


for j=1:n
    i={size(a,2)}; 
    
    for k=1:size(a,2)
        options=size(a(k).options,2);
        r =round( 1 + (options-1)*rand());

        i.(a(k).name)='';
        i.(a(k).name)=a(k).options(r);
        if(rand>0.5)
          i.disfruta='si';
        else
          i.disfruta='no';
        end
    end
    instances(j)=i;

end


end

